package data.structure.linear.linkedList;

/**
 * @Author douhy
 * @description 场景测试类
 * @date 22/01/14
 */
public class Client {
    public static void main(String[] args) {
        DoubleLinkedList<Integer> doubleLinkedList = new DoubleLinkedList<Integer>();
        doubleLinkedList.add(1);
        doubleLinkedList.add(2);
        doubleLinkedList.add(3);
        doubleLinkedList.add(4);
        doubleLinkedList.set(2,5);
        System.out.println(doubleLinkedList);
        System.out.println(doubleLinkedList.get(2));
        System.out.println(doubleLinkedList.indexOf(5));


        doubleLinkedList.remove(0);
        System.out.println(doubleLinkedList);
    }
}
